export class ParamModel {
    clientId: string;
    name:string;
    addressList: [
        {
            "address": string,
            "defaultIndicator": string,
            "id": string,
            "postCode": string,
            individual: boolean
        }
        ];
    carOwnership: string;
    childNum: string;
    houseOwnership: string;
    income: string;
    marriageType: string;
    mobileList: Array<mobileList>;
    occupation: string;
    remark: string;
    customerId:string;
    otherIns: number;
    insType: number;
    partyId:string;
    userId:string;
    public static EditParmMod(pageMod: PageClientMod) {
        const parmMod = new ParamModel();
        parmMod.name = pageMod.name;
        parmMod.mobileList = pageMod.mobilePhone;
        parmMod.addressList = pageMod.addressList;
        parmMod.marriageType = pageMod.marriageType;
        parmMod.carOwnership = pageMod.carOwnership;
        parmMod.houseOwnership = pageMod.houseOwnership;
        parmMod.childNum =  pageMod.childNum;
        parmMod.otherIns =  pageMod.otherIns;
        parmMod.insType =  pageMod.insType;
        return parmMod;
    }
}


export class mobileList {
    defaultIndicator: any;
    id: string;
    mobile: string;
    individual: boolean;
}
export class PageClientMod {
    clientId: string;
    addressList: [
        {
            "address": string,
            "defaultIndicator": any,
            "id": string,
            "postCode": string,
            individual: boolean,
        }];
    carOwnership: string;
    otherIns: number;
    insType: number;
    childNum: string;
    houseOwnership: string;
    income: string;
    marriageType: string;
    mobilePhone: Array<mobileList>;
    occupation: string;
    remark: string;
    name:string;
    customerId:string;
    partyId:string;
    userId:string;

}

